import * as types from '../mutation-types.js'

//全局状态
const state = {
  userAddress: '',
}

//getters
const getters = {
  userAddress: state => {
    return state.userAddress
  },
}

const mutations = {
  [types.SET_USERADDRESS] (state, userAddress) {
    state.userAddress = userAddress
  },
}

export default {
  state,
  mutations,
  getters
}
